package com.fire.eyes.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * banner表
 * </p>
 *
 * @author MIT123
 * @since 2018-05-02
 */
@TableName("t_mit_banner")
public class TMitBanner extends Model<TMitBanner> {

    private static final long serialVersionUID = 1L;

    /**
     * Banner号
     */
    @TableId(value = "bannerid", type = IdType.AUTO)
    private Integer bannerid;
    /**
     * 类型(0:pc,1:H5)
     */
    private Integer platetype;
    /**
     * Banner主题
     */
    private String bannertitle;
    /**
     * Banner说明
     */
    private String bannerdescriptor;
    /**
     * Banner的链接
     */
    private String bannerurl;
    /**
     * Banner图片地址
     */
    private String imageurl;
    /**
     * 1:渠道,2:活动,3:渠道号
     */
    private Integer sourcetype;
    /**
     * 渠道号，活动号，营销号
     */
    private Integer sourceid;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 状态(0:有效,1:编辑中,2:失效)
     */
    private Integer status;


    public Integer getBannerid() {
        return bannerid;
    }

    public void setBannerid(Integer bannerid) {
        this.bannerid = bannerid;
    }

    public Integer getPlatetype() {
        return platetype;
    }

    public void setPlatetype(Integer platetype) {
        this.platetype = platetype;
    }

    public String getBannertitle() {
        return bannertitle;
    }

    public void setBannertitle(String bannertitle) {
        this.bannertitle = bannertitle;
    }

    public String getBannerdescriptor() {
        return bannerdescriptor;
    }

    public void setBannerdescriptor(String bannerdescriptor) {
        this.bannerdescriptor = bannerdescriptor;
    }

    public String getBannerurl() {
        return bannerurl;
    }

    public void setBannerurl(String bannerurl) {
        this.bannerurl = bannerurl;
    }

    public String getImageurl() {
        return imageurl;
    }

    public void setImageurl(String imageurl) {
        this.imageurl = imageurl;
    }

    public Integer getSourcetype() {
        return sourcetype;
    }

    public void setSourcetype(Integer sourcetype) {
        this.sourcetype = sourcetype;
    }

    public Integer getSourceid() {
        return sourceid;
    }

    public void setSourceid(Integer sourceid) {
        this.sourceid = sourceid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.bannerid;
    }

    @Override
    public String toString() {
        return "TMitBanner{" +
        "bannerid=" + bannerid +
        ", platetype=" + platetype +
        ", bannertitle=" + bannertitle +
        ", bannerdescriptor=" + bannerdescriptor +
        ", bannerurl=" + bannerurl +
        ", imageurl=" + imageurl +
        ", sourcetype=" + sourcetype +
        ", sourceid=" + sourceid +
        ", createtime=" + createtime +
        ", status=" + status +
        "}";
    }
}
